{#
/**
 * Date Html, dropdown style
 *
 * @var $sRows      : the rows, generated with the view rows/*.php
 *
 * @var $name
 * @var $dateoutput
 * @var $checkconditionFunction
 * @var $dateformatdetails
 * @var $dateformat
 */ #}


<!-- Date, dropdown layout -->

<!-- answer -->
<div class="{{ coreClass }} ls-no-js-hidden mb-3 row row-cols-sm-auto g-1 align-items-center" role="group"
     aria-labelledby="ls-question-text-{{ name }}">
    {# // rows/*.php #}
    {{ sRows }}
</div>
<!-- answer fo nojs action and real value sent -->
<div class="row">
    <div class='{{ coreClass }} ls-js-hidden mb-3 col-3'>
        <label for='answer{{ name }}' class='visually-hidden control-label'>
            {{ sprintf(gT('Date in the format: %s'), dateformatdetails) }}
        </label>
        <div id="answer{{ name }}_datetimepicker" class="input-group answer-item date-timepicker-group"
             data-basename="{{ name }}"><!-- data-basename used in js function -->
            {{ C.Html.textField(name,dateoutput,{
                'id' : "answer" ~ name,
                'class' : "form-control date-control date",
                'aria-describedby' : "ls-question-text-" ~ name,
            }) }}
        </div>
        <p class="tip help-block" aria-hidden='true'>
            {{ sprintf(gT('Format: %s'),dateformatdetails) }}
        </p>
    </div>
</div>
<input type="hidden" id="dateformat{{ name }}" value="{{ dateformatdetails }}"/>
<!-- end of answer -->
